package cn.com.sparkle.paxos.admin;

import cn.com.sparkle.paxos.Context;
import cn.com.sparkle.paxos.handlerinterface.HandlerInterface;
import cn.com.sparkle.paxos.model.AddRequest;
import cn.com.sparkle.paxos.net.netlayer.PaxosSession;

public class AdminLookupHandler extends HandlerInterface {
	private Context context;

	public AdminLookupHandler(Context context) {
		this.context = context;
	}

	@Override
	public void onClientConnect(PaxosSession session) {
	}

	@Override
	public void onClientClose(PaxosSession session) {
	}

	@Override
	public void onReceiveLookUp(PaxosSession session, AddRequest request) {
		byte[] b = request.getValue();

		//		sendResponseCommandResponse(session, request, response);
	}

	@Override
	public byte[] onLoged(byte[] bytes) {
		//the method will be not invoked!
		throw new RuntimeException("unsupported method!");
	}

}
